package com.xxx.multids;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 根据orgId切换到对应的数据源
 */
public class MultipleDataSource extends AbstractRoutingDataSource {
	
	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceHandler.getDataSource();
	}
	
}
